<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.List" %>
    <%@ page import="JSPBasicGrammar.mysql06.jdbc.limit.Procedure" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<table border="1"  style="width=450px;align:center">

<tr>
<td align="center" colspan="5">
<h2>员工信息</h2>
</td>
</tr>
<tr>
<td><b>名字</b></td>
<td><b>性别</b></td>
<td><b>年龄</b></td>
<td><b>工资</b></td>
</tr>

<tr>

<%

List<Procedure> list=(List<Procedure>)request.getAttribute("list");
for(Procedure p:list){
%>

<td><b><%=p.getName() %></b></td>
<td><b><%=p.getSex() %></b></td>
<td><b><%=p.getAge() %></b></td>
<td><b><%=p.getMoney() %></b></td>

</tr>

<%
}
%>

<tr>
<td>
<%=request.getAttribute("bar") %>
</td>
</tr>

</table>

</body>
</html>